package com.android.love.parser;

import java.util.List;

import com.alibaba.fastjson.JSON;
import com.android.love.util.LogUtil;
import com.android.love.vo.Goods;
import com.android.love.vo.Meixiu;

public class PushParser extends BaseParser<Integer> {
	private static final String TAG = "PushParser";

	@Override
	public Integer parserJson(String jsonStr) {
		int type = -1;
		LogUtil.i(TAG, "data11---" + jsonStr);
		if (checkResponse(jsonStr)) {
			String data = jsonObject.getString("data");
			LogUtil.i(TAG, "data---" + data);
			if (data != null) {
				jsonObject = JSON.parseObject(data);
				type =jsonObject.getInteger("type");
//				type = JSON.parseObject(data, Integer.class);
			}
		}
		LogUtil.i(TAG, "type---" + type);
		return type;
	}
}
